#include "Color.h"
#include "../debug_new.h"


CColor::~CColor(void)
{
}

CColor::CColor(UINT nID):CControl(nID)
{
	InitColor();
}

CColor::CColor(wstring strCaption,UINT nID):
CControl(strCaption,nID)
{
	InitColor();
}

CColor::CColor(DWORD dwStyle,wstring strCaption, const CRect &rc, UINT nID)
:	CControl(dwStyle,strCaption, rc, nID)
{
	InitColor();
}

CColor::CColor(DWORD dwStyle, wstring strCaption, int x, int y, int cx, int cy, UINT nID)
:	CControl(dwStyle, strCaption, x, y, cx, cy, nID)
{
	InitColor();
}

void CColor::InitColor()
{
	m_clrForeground = RGB(255,255,255);
}

void CColor::Paint(CDC* pDC)
{
	if(m_rcControl.IsRectEmpty())
	{
		return ;
	}

	if(!IsVisible())
	{
		return;
	}

	pDC->FillSolidRect(m_rcControl,m_clrForeground);
}